package com.common.enums.user;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.core.enums.CoreEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: stefanie-zy
 * @time: 2024/1/25-10:12
 * @description: 用户类型枚举
 */
@AllArgsConstructor
@Getter
@Schema(name = "Enum-用户类型")
public enum UserTypeEnum implements CoreEnum {

    SYSTEM(1, "系统用户"),
    BUSINESS(2, "业务用户"),
    ;

    @EnumValue
    private final Integer code;
    @JsonValue
    private final String message;
}
